package com.huawei.appgallery.assistantdock.gamemode.card;

import android.content.Context;
import android.view.View;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import o.beo$d;
import o.beo.f;
import o.bif;
import o.bif.d;
import o.big;
import o.bii;
import o.cgz;
import o.fae;
import o.fam;

public class SoundToVibEnterCardBuoy extends BuoyBaseEnterCard {
    public SoundToVibEnterCardBuoy(Context context) {
        super(context);
    }

    public cgz ˏ(View view) {
        cgz ˏ = super.ˏ(view);
        this.ˊ.setText(f.ʾ);
        boolean z = false;
        fae ˏ2 = fam.ॱ().ˏ();
        if (ˏ2 != null) {
            z = big.ˎ(ˏ2.getGameInfo());
        }
        ˋ(z);
        return ˏ;
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        this.ॱ = bii.ॱॱ() == bif.f.OPEN;
        ॱॱ();
    }

    void ॱॱ() {
        this.ʼ.setBackgroundResource(this.ॱ ? beo$d.ॱͺ : beo$d.ˑ);
    }

    public void ˋ() {
        this.ॱ = !this.ॱ;
        ॱॱ();
        bii.ˎ(this.ॱ ? bif.f.OPEN : bif.f.CLOSE);
        ʻ();
        ˏ(this.ॱ ? "STATE2" : "STATE1");
    }

    String ᐝ() {
        return d.GSS_SOUND_TO_VIBRATE_MODE.ˊ();
    }
}
